package com.orientation.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 物质领取状态表
 * </p>
 *
 * @author xuandian
 * @since 2022-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_receive")
@ApiModel(value = "Receive对象", description = "物质领取状态表")
public class Receive implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "图片文件ID")
    @TableId(value = "SID", type = IdType.ASSIGN_UUID)
    private String sid;

    @ApiModelProperty(value = "物品ID/")
    @TableField("GOODS_ID")
    private String goodsId;

    @ApiModelProperty(value = "学生studentID")
    @TableField("STUDENT_ID")
    private String studentId;

    @ApiModelProperty(value = "文件图片URL")
    @TableField(value = "FILES_URL", updateStrategy = FieldStrategy.IGNORED)
    private String filesUrl;
    @ApiModelProperty(value = "物资领取状态0未领取1领取")
    @TableField("RECEIVE_STATUS")
    private Integer receiveStatus;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "UPDATE_USER", fill = FieldFill.UPDATE)
    private String updateUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


    @ApiModelProperty(value = "逻辑删除")
    @TableField("DELETED")
    private Integer deleted;

    @ApiModelProperty(value = "乐观锁注解字段")
    @TableField(value = "VERSION")
    @Version
    private Integer version;
}
